appendSubshape

abstract fun appendSubshape(block: DesignBlock, subshapeBlock: DesignBlock)

Appends a subshape to a compound shape. A shape has one owner, so the subshape is detached from its previous block or compound shape. Line shapes cannot be subshapes. The call fails when the shape tree would nest more than 128 shapes. Required scope: "shape/change" Experimental: this API may change in a minor release.

Parameters

block

the compound shape block.

subshapeBlock

the shape block to append.